<?php

use Illuminate\Support\Facades\Route;
//Wap 模块

// 获取地区表
Route::get('/wap/area/get_all', [\App\Common\Http\Controller\AreaController::class, 'getAreaAll']);

// 获取BANNER轮播
Route::get('/wap/banner/list', [\App\Common\Http\Controller\BannerController::class, 'getList']);

// 发送短信
Route::post('/wap/send_sms', [\App\Common\Http\Controller\SmsController::class, 'sendCode']);

// 校验验证码
Route::post('/wap/verify_code', [\App\Common\Http\Controller\SmsController::class, 'verifyCode']);

// 鉴权中间件
Route::middleware(['his.auth'])->group(function () {
    Route::post('/wap/sts/alioss', [\App\Common\Http\Controller\StsController::class, 'aliOss']);

    // IM 发送消息
    Route::post('/wap/im/send_sms', [\App\Common\Http\Controller\ImController::class, 'sendSms']);

    // IM 撤回消息
    Route::post('/wap/im/withdraw', [\App\Common\Http\Controller\ImController::class, 'withdraw']);

    // IM 拉取消息
    Route::get('/wap/im/search', [\App\Common\Http\Controller\ImController::class, 'search']);
});


//打印机

Route::post('/wap/add_list', [\App\Common\Http\Controller\PrinterController::class, 'addList']);
Route::post('/wap/msg_send', [\App\Common\Http\Controller\PrinterController::class, 'msgSend']);
Route::post('/wap/search_status', [\App\Common\Http\Controller\PrinterController::class, '']);
